/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PanelPC.java
 *
 * Created on 06/08/2011, 19:06:42
 */
package tsb.UI.Paneles;

import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import tsb.UI.Paneles.PC.PanelModemPC;
import tsb.UI.Paneles.PC.PanelFastEthernetFibra;
import tsb.UI.Paneles.PC.PanelGigabitFibra;
import tsb.UI.Paneles.PC.PanelGigabitRJ45;
import tsb.UI.Paneles.PC.PanelFastEthernetRJ45;
import tsb.dominio.excepciones.MACException;
import tsb.dominio.interfaces.*;
import java.util.ArrayList;
import java.util.Iterator;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.ListCellRenderer;
import tsb.UI.Paneles.PC.PanelEthernet;
import tsb.UI.Ventanas.VentanaDeError;
import tsb.dominio.enumeraciones.AsignacionIP;

/**
 *
 * @author Fede
 */
public class PanelSwitch extends javax.swing.JPanel {
    
   // private int cantidadInterfaces=0; // para controllar la contidad de interfaces que tiene
    private boolean pestaña1=true; // para saber si la pestaña ya tiene un panel
    private boolean pestaña2=true; // para saber si la pestaña ya tiene un panel
    private boolean pestaña3=true;
    private boolean pestaña4=true;
    private boolean pestaña5=true;
    private boolean pestaña6=true;
    private boolean pestaña7=true;
    private boolean pestaña8=true;
    private boolean pestaña9=true;
    private boolean pestaña10=true;
    private boolean pestaña11=true;
    private boolean pestaña12=true;
    private boolean pestaña13=true;
    private boolean pestaña14=true;
    private boolean pestaña15=true;
    private boolean pestaña16=true;
    private boolean pestaña17=true;
    private boolean pestaña18=true;
    private boolean pestaña19=true;
    private boolean pestaña20=true;
    private boolean pestaña21=true;
    private boolean pestaña22=true;
    private boolean pestaña23=true;
    private boolean pestaña24=true;

    

    private ArrayList<InterfaceDeConeccion> listaInterfaces;
    ImageIcon[] images;
    String[] opciones = {"Si","No"};
    Integer[] intArray;
    /** Creates new form PanelPC */
    public PanelSwitch()
    {
         images = new ImageIcon[opciones.length];
        intArray = new Integer[opciones.length];
        for (int i = 0; i < opciones.length; i++) {
            intArray[i] = new Integer(i);
            if(i==0)
            {images[i] = new javax.swing.ImageIcon(getClass().getResource("/tsb/UI/Imagenes/PRENDIDO_16X16.png"));
            }
            else
            {images[i] = new javax.swing.ImageIcon(getClass().getResource("/tsb/UI/Imagenes/APAGADO_16X16.png"));
            }
            if (images[i] != null) {
                images[i].setDescription(opciones[i]);
            }
        }
        initComponents();
        ComboBoxRenderer renderer= new ComboBoxRenderer();
        renderer.setPreferredSize(new Dimension(10, 20));
        this.cmbencendido.setRenderer(renderer);
        
        listaInterfaces = new ArrayList<InterfaceDeConeccion>();
        
    }
    public boolean getPestaña1() {
        return pestaña1;
    }

    public void setPestaña1(boolean pestaña1) {
        this.pestaña1 = pestaña1;
    }

    public boolean getPestaña2() {
        return pestaña2;
    }

    public void setPestaña2(boolean pestaña2) {
        this.pestaña2 = pestaña2;
    }
     public boolean getPestaña3() {
        return pestaña3;
    }

    public void setPestaña3(boolean pestaña3) {
        this.pestaña3 = pestaña2;
    }
     public boolean getPestaña4() {
        return pestaña4;
    }

    public void setPestaña4(boolean pestaña4) {
        this.pestaña4 = pestaña2;
    }
    public boolean getPestaña5() {
        return pestaña5;
    }

    public void setPestaña5(boolean pestaña5) {
        this.pestaña5 = pestaña2;
    }
     public boolean getPestaña6() {
        return pestaña6;
    }

    public void setPestaña6(boolean pestaña6) {
        this.pestaña6 = pestaña2;
    }
     public boolean getPestaña7() {
        return pestaña7;
    }

    public void setPestaña7(boolean pestaña7) {
        this.pestaña7 = pestaña2;
    }
    public boolean getPestaña8() {
        return pestaña8;
    }

    public void setPestaña8(boolean pestaña8) {
        this.pestaña8 = pestaña2;
    }
    public boolean getPestaña9() {
        return pestaña9;
    }

    public void setPestaña9(boolean pestaña9) {
        this.pestaña9 = pestaña2;
    }
    public boolean getPestaña10() {
        return pestaña10;
    }

    public void setPestaña10(boolean pestaña10) {
        this.pestaña10 = pestaña2;
    }
    public boolean getPestaña11() {
        return pestaña11;
    }

    public void setPestaña11(boolean pestaña11) {
        this.pestaña11 = pestaña2;
    }
    public boolean getPestaña12() {
        return pestaña12;
    }

    public void setPestaña12(boolean pestaña12) {
        this.pestaña12 = pestaña2;
    }
    public boolean getPestaña13() {
        return pestaña13;
    }

    public void setPestaña13(boolean pestaña13) {
        this.pestaña13 = pestaña13;
    }
    public boolean getPestaña14() {
        return pestaña14;
    }

    public void setPestaña14(boolean pestaña14) {
        this.pestaña14 = pestaña14;
    }
    public boolean getPestaña15() {
        return pestaña15;
    }

    public void setPestaña15(boolean pestaña15) {
        this.pestaña15 = pestaña15;
    }
    public boolean getPestaña16() {
        return pestaña16;
    }

    public void setPestaña16(boolean pestaña16) {
        this.pestaña16 = pestaña16;
    }
    public boolean getPestaña17() {
        return pestaña17;
    }

    public void setPestaña17(boolean pestaña17) {
        this.pestaña17 = pestaña17;
    }
    public boolean getPestaña18() {
        return pestaña18;
    }

    public void setPestaña18(boolean pestaña18) {
        this.pestaña18 = pestaña18;
    }
    public boolean getPestaña19() {
        return pestaña19;
    }

    public void setPestaña19(boolean pestaña19) {
        this.pestaña19 = pestaña19;
    }
    public boolean getPestaña20() {
        return pestaña20;
    }

    public void setPestaña20(boolean pestaña20) {
        this.pestaña20 = pestaña20;
    }
    public boolean getPestaña21() {
        return pestaña21;
    }

    public void setPestaña21(boolean pestaña21) {
        this.pestaña21 = pestaña21;
    }
    public boolean getPestaña22() {
        return pestaña22;
    }

    public void setPestaña22(boolean pestaña22) {
        this.pestaña22 = pestaña22;
    }
    public boolean getPestaña23() {
        return pestaña23;
    }

    public void setPestaña23(boolean pestaña23) {
        this.pestaña23 = pestaña23;
    }
    public boolean getPestaña24() {
        return pestaña24;
    }

    public void setPestaña24(boolean pestaña24) {
        this.pestaña24 = pestaña24;
    }


    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btgrAsingacionIP = new javax.swing.ButtonGroup();
        Pestañas = new javax.swing.JTabbedPane();
        panelConfiguraciones = new javax.swing.JPanel();
        txtNombreAMostrar = new javax.swing.JTextField();
        labelNombreAMostrar = new javax.swing.JLabel();
        cmbencendido = new javax.swing.JComboBox(intArray);
        labelEncendido = new javax.swing.JLabel();
        panelInterfaces = new javax.swing.JPanel();
        pestañasInterfaces = new javax.swing.JTabbedPane();
        panelPestañaInterfaz1 = new javax.swing.JPanel();
        panelRJ45Switch1 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañainterfaz2 = new javax.swing.JPanel();
        panelRJ45Switch2 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz3 = new javax.swing.JPanel();
        panelRJ45Switch3 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz4 = new javax.swing.JPanel();
        panelRJ45Switch4 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz5 = new javax.swing.JPanel();
        panelRJ45Switch5 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz6 = new javax.swing.JPanel();
        panelRJ45Switch6 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz7 = new javax.swing.JPanel();
        panelRJ45Switch7 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz8 = new javax.swing.JPanel();
        panelRJ45Switch8 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz9 = new javax.swing.JPanel();
        panelRJ45Switch9 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz10 = new javax.swing.JPanel();
        panelRJ45Switch10 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz11 = new javax.swing.JPanel();
        panelRJ45Switch11 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz12 = new javax.swing.JPanel();
        panelRJ45Switch12 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz13 = new javax.swing.JPanel();
        panelRJ45Switch13 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz14 = new javax.swing.JPanel();
        panelRJ45Switch14 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz15 = new javax.swing.JPanel();
        panelRJ45Switch15 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz16 = new javax.swing.JPanel();
        panelRJ45Switch16 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz17 = new javax.swing.JPanel();
        panelRJ45Switch17 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz18 = new javax.swing.JPanel();
        panelRJ45Switch18 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz119 = new javax.swing.JPanel();
        panelRJ45Switch19 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz20 = new javax.swing.JPanel();
        panelRJ45Switch20 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz21 = new javax.swing.JPanel();
        panelRJ45Switch21 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz22 = new javax.swing.JPanel();
        panelRJ45Switch22 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz23 = new javax.swing.JPanel();
        panelRJ45Switch23 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz24 = new javax.swing.JPanel();
        panelRJ45Switch24 = new tsb.UI.Paneles.PanelRJ45Switch();
        panelPestañaInterfaz25 = new javax.swing.JPanel();
        panelPestañaInterfaz26 = new javax.swing.JPanel();
        labelInterfacesDeConeccion = new javax.swing.JLabel();
        labelInterfaz = new javax.swing.JLabel();
        cmbInterfaz = new javax.swing.JComboBox();

        setBackground(new java.awt.Color(255, 255, 255));

        Pestañas.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        panelConfiguraciones.setBackground(new java.awt.Color(255, 255, 255));

        txtNombreAMostrar.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        labelNombreAMostrar.setFont(new java.awt.Font("Tahoma", 0, 14));
        labelNombreAMostrar.setText("Nombre a Mostrar:");

        labelEncendido.setFont(new java.awt.Font("Tahoma", 0, 14));
        labelEncendido.setText("Encendido:");

        javax.swing.GroupLayout panelConfiguracionesLayout = new javax.swing.GroupLayout(panelConfiguraciones);
        panelConfiguraciones.setLayout(panelConfiguracionesLayout);
        panelConfiguracionesLayout.setHorizontalGroup(
            panelConfiguracionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelConfiguracionesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelConfiguracionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelConfiguracionesLayout.createSequentialGroup()
                        .addComponent(labelEncendido)
                        .addGap(50, 50, 50)
                        .addComponent(cmbencendido, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(222, Short.MAX_VALUE))
                    .addGroup(panelConfiguracionesLayout.createSequentialGroup()
                        .addComponent(labelNombreAMostrar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtNombreAMostrar, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)
                        .addGap(70, 70, 70))))
        );
        panelConfiguracionesLayout.setVerticalGroup(
            panelConfiguracionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelConfiguracionesLayout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addGroup(panelConfiguracionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cmbencendido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelEncendido))
                .addGap(18, 18, 18)
                .addGroup(panelConfiguracionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNombreAMostrar)
                    .addComponent(txtNombreAMostrar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(354, Short.MAX_VALUE))
        );

        Pestañas.addTab("Configuraciones", new javax.swing.ImageIcon(getClass().getResource("/tsb/UI/Imagenes/CONFIGURACIONES2_16X16.png")), panelConfiguraciones); // NOI18N

        panelInterfaces.setBackground(new java.awt.Color(255, 255, 255));

        pestañasInterfaces.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);

        panelPestañaInterfaz1.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz1Layout = new javax.swing.GroupLayout(panelPestañaInterfaz1);
        panelPestañaInterfaz1.setLayout(panelPestañaInterfaz1Layout);
        panelPestañaInterfaz1Layout.setHorizontalGroup(
            panelPestañaInterfaz1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelPestañaInterfaz1Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz1Layout.setVerticalGroup(
            panelPestañaInterfaz1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelPestañaInterfaz1Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 1", panelPestañaInterfaz1);

        panelPestañainterfaz2.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañainterfaz2Layout = new javax.swing.GroupLayout(panelPestañainterfaz2);
        panelPestañainterfaz2.setLayout(panelPestañainterfaz2Layout);
        panelPestañainterfaz2Layout.setHorizontalGroup(
            panelPestañainterfaz2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelPestañainterfaz2Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañainterfaz2Layout.setVerticalGroup(
            panelPestañainterfaz2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelPestañainterfaz2Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 2", panelPestañainterfaz2);

        panelPestañaInterfaz3.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz3Layout = new javax.swing.GroupLayout(panelPestañaInterfaz3);
        panelPestañaInterfaz3.setLayout(panelPestañaInterfaz3Layout);
        panelPestañaInterfaz3Layout.setHorizontalGroup(
            panelPestañaInterfaz3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelPestañaInterfaz3Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz3Layout.setVerticalGroup(
            panelPestañaInterfaz3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelPestañaInterfaz3Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 3", panelPestañaInterfaz3);

        panelPestañaInterfaz4.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz4Layout = new javax.swing.GroupLayout(panelPestañaInterfaz4);
        panelPestañaInterfaz4.setLayout(panelPestañaInterfaz4Layout);
        panelPestañaInterfaz4Layout.setHorizontalGroup(
            panelPestañaInterfaz4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz4Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz4Layout.setVerticalGroup(
            panelPestañaInterfaz4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz4Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 4", panelPestañaInterfaz4);

        panelPestañaInterfaz5.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz5Layout = new javax.swing.GroupLayout(panelPestañaInterfaz5);
        panelPestañaInterfaz5.setLayout(panelPestañaInterfaz5Layout);
        panelPestañaInterfaz5Layout.setHorizontalGroup(
            panelPestañaInterfaz5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz5Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz5Layout.setVerticalGroup(
            panelPestañaInterfaz5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz5Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 5", panelPestañaInterfaz5);

        panelPestañaInterfaz6.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz6Layout = new javax.swing.GroupLayout(panelPestañaInterfaz6);
        panelPestañaInterfaz6.setLayout(panelPestañaInterfaz6Layout);
        panelPestañaInterfaz6Layout.setHorizontalGroup(
            panelPestañaInterfaz6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz6Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz6Layout.setVerticalGroup(
            panelPestañaInterfaz6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz6Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 6", panelPestañaInterfaz6);

        panelPestañaInterfaz7.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz7Layout = new javax.swing.GroupLayout(panelPestañaInterfaz7);
        panelPestañaInterfaz7.setLayout(panelPestañaInterfaz7Layout);
        panelPestañaInterfaz7Layout.setHorizontalGroup(
            panelPestañaInterfaz7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz7Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz7Layout.setVerticalGroup(
            panelPestañaInterfaz7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz7Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 7", panelPestañaInterfaz7);

        panelPestañaInterfaz8.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz8Layout = new javax.swing.GroupLayout(panelPestañaInterfaz8);
        panelPestañaInterfaz8.setLayout(panelPestañaInterfaz8Layout);
        panelPestañaInterfaz8Layout.setHorizontalGroup(
            panelPestañaInterfaz8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz8Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz8Layout.setVerticalGroup(
            panelPestañaInterfaz8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz8Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 8", panelPestañaInterfaz8);

        panelPestañaInterfaz9.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz9Layout = new javax.swing.GroupLayout(panelPestañaInterfaz9);
        panelPestañaInterfaz9.setLayout(panelPestañaInterfaz9Layout);
        panelPestañaInterfaz9Layout.setHorizontalGroup(
            panelPestañaInterfaz9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz9Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz9Layout.setVerticalGroup(
            panelPestañaInterfaz9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz9Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 9", panelPestañaInterfaz9);

        panelPestañaInterfaz10.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz10Layout = new javax.swing.GroupLayout(panelPestañaInterfaz10);
        panelPestañaInterfaz10.setLayout(panelPestañaInterfaz10Layout);
        panelPestañaInterfaz10Layout.setHorizontalGroup(
            panelPestañaInterfaz10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz10Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz10Layout.setVerticalGroup(
            panelPestañaInterfaz10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz10Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 10", panelPestañaInterfaz10);

        panelPestañaInterfaz11.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz11Layout = new javax.swing.GroupLayout(panelPestañaInterfaz11);
        panelPestañaInterfaz11.setLayout(panelPestañaInterfaz11Layout);
        panelPestañaInterfaz11Layout.setHorizontalGroup(
            panelPestañaInterfaz11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz11Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz11Layout.setVerticalGroup(
            panelPestañaInterfaz11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz11Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 11", panelPestañaInterfaz11);

        panelPestañaInterfaz12.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz12Layout = new javax.swing.GroupLayout(panelPestañaInterfaz12);
        panelPestañaInterfaz12.setLayout(panelPestañaInterfaz12Layout);
        panelPestañaInterfaz12Layout.setHorizontalGroup(
            panelPestañaInterfaz12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz12Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz12Layout.setVerticalGroup(
            panelPestañaInterfaz12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz12Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 12", panelPestañaInterfaz12);

        panelPestañaInterfaz13.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz13Layout = new javax.swing.GroupLayout(panelPestañaInterfaz13);
        panelPestañaInterfaz13.setLayout(panelPestañaInterfaz13Layout);
        panelPestañaInterfaz13Layout.setHorizontalGroup(
            panelPestañaInterfaz13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz13Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz13Layout.setVerticalGroup(
            panelPestañaInterfaz13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz13Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 13", panelPestañaInterfaz13);

        panelPestañaInterfaz14.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz14Layout = new javax.swing.GroupLayout(panelPestañaInterfaz14);
        panelPestañaInterfaz14.setLayout(panelPestañaInterfaz14Layout);
        panelPestañaInterfaz14Layout.setHorizontalGroup(
            panelPestañaInterfaz14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz14Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz14Layout.setVerticalGroup(
            panelPestañaInterfaz14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz14Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 14", panelPestañaInterfaz14);

        panelPestañaInterfaz15.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz15Layout = new javax.swing.GroupLayout(panelPestañaInterfaz15);
        panelPestañaInterfaz15.setLayout(panelPestañaInterfaz15Layout);
        panelPestañaInterfaz15Layout.setHorizontalGroup(
            panelPestañaInterfaz15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz15Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz15Layout.setVerticalGroup(
            panelPestañaInterfaz15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz15Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 15", panelPestañaInterfaz15);

        panelPestañaInterfaz16.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz16Layout = new javax.swing.GroupLayout(panelPestañaInterfaz16);
        panelPestañaInterfaz16.setLayout(panelPestañaInterfaz16Layout);
        panelPestañaInterfaz16Layout.setHorizontalGroup(
            panelPestañaInterfaz16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz16Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz16Layout.setVerticalGroup(
            panelPestañaInterfaz16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz16Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 16", panelPestañaInterfaz16);

        panelPestañaInterfaz17.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz17Layout = new javax.swing.GroupLayout(panelPestañaInterfaz17);
        panelPestañaInterfaz17.setLayout(panelPestañaInterfaz17Layout);
        panelPestañaInterfaz17Layout.setHorizontalGroup(
            panelPestañaInterfaz17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz17Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz17Layout.setVerticalGroup(
            panelPestañaInterfaz17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz17Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 17", panelPestañaInterfaz17);

        panelPestañaInterfaz18.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz18Layout = new javax.swing.GroupLayout(panelPestañaInterfaz18);
        panelPestañaInterfaz18.setLayout(panelPestañaInterfaz18Layout);
        panelPestañaInterfaz18Layout.setHorizontalGroup(
            panelPestañaInterfaz18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz18Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz18Layout.setVerticalGroup(
            panelPestañaInterfaz18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz18Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 18", panelPestañaInterfaz18);

        panelPestañaInterfaz119.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz119Layout = new javax.swing.GroupLayout(panelPestañaInterfaz119);
        panelPestañaInterfaz119.setLayout(panelPestañaInterfaz119Layout);
        panelPestañaInterfaz119Layout.setHorizontalGroup(
            panelPestañaInterfaz119Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz119Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz119Layout.setVerticalGroup(
            panelPestañaInterfaz119Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz119Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 19", panelPestañaInterfaz119);

        panelPestañaInterfaz20.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz20Layout = new javax.swing.GroupLayout(panelPestañaInterfaz20);
        panelPestañaInterfaz20.setLayout(panelPestañaInterfaz20Layout);
        panelPestañaInterfaz20Layout.setHorizontalGroup(
            panelPestañaInterfaz20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz20Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz20Layout.setVerticalGroup(
            panelPestañaInterfaz20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz20Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 20", panelPestañaInterfaz20);

        panelPestañaInterfaz21.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz21Layout = new javax.swing.GroupLayout(panelPestañaInterfaz21);
        panelPestañaInterfaz21.setLayout(panelPestañaInterfaz21Layout);
        panelPestañaInterfaz21Layout.setHorizontalGroup(
            panelPestañaInterfaz21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz21Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz21Layout.setVerticalGroup(
            panelPestañaInterfaz21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz21Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 21", panelPestañaInterfaz21);

        panelPestañaInterfaz22.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz22Layout = new javax.swing.GroupLayout(panelPestañaInterfaz22);
        panelPestañaInterfaz22.setLayout(panelPestañaInterfaz22Layout);
        panelPestañaInterfaz22Layout.setHorizontalGroup(
            panelPestañaInterfaz22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz22Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz22Layout.setVerticalGroup(
            panelPestañaInterfaz22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz22Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 22", panelPestañaInterfaz22);

        panelPestañaInterfaz23.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz23Layout = new javax.swing.GroupLayout(panelPestañaInterfaz23);
        panelPestañaInterfaz23.setLayout(panelPestañaInterfaz23Layout);
        panelPestañaInterfaz23Layout.setHorizontalGroup(
            panelPestañaInterfaz23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz23Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz23Layout.setVerticalGroup(
            panelPestañaInterfaz23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz23Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 23", panelPestañaInterfaz23);

        panelPestañaInterfaz24.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz24Layout = new javax.swing.GroupLayout(panelPestañaInterfaz24);
        panelPestañaInterfaz24.setLayout(panelPestañaInterfaz24Layout);
        panelPestañaInterfaz24Layout.setHorizontalGroup(
            panelPestañaInterfaz24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGap(0, 398, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz24Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        panelPestañaInterfaz24Layout.setVerticalGroup(
            panelPestañaInterfaz24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGap(0, 322, Short.MAX_VALUE)
            .addGroup(panelPestañaInterfaz24Layout.createSequentialGroup()
                .addComponent(panelRJ45Switch24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pestañasInterfaces.addTab("Interfaz 24", panelPestañaInterfaz24);

        panelPestañaInterfaz25.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz25Layout = new javax.swing.GroupLayout(panelPestañaInterfaz25);
        panelPestañaInterfaz25.setLayout(panelPestañaInterfaz25Layout);
        panelPestañaInterfaz25Layout.setHorizontalGroup(
            panelPestañaInterfaz25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
        );
        panelPestañaInterfaz25Layout.setVerticalGroup(
            panelPestañaInterfaz25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
        );

        pestañasInterfaces.addTab("Interfaz 25", panelPestañaInterfaz25);

        panelPestañaInterfaz26.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout panelPestañaInterfaz26Layout = new javax.swing.GroupLayout(panelPestañaInterfaz26);
        panelPestañaInterfaz26.setLayout(panelPestañaInterfaz26Layout);
        panelPestañaInterfaz26Layout.setHorizontalGroup(
            panelPestañaInterfaz26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 398, Short.MAX_VALUE)
        );
        panelPestañaInterfaz26Layout.setVerticalGroup(
            panelPestañaInterfaz26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 322, Short.MAX_VALUE)
        );

        pestañasInterfaces.addTab("Interfaz 26", panelPestañaInterfaz26);

        labelInterfacesDeConeccion.setFont(new java.awt.Font("Tahoma", 0, 14));
        labelInterfacesDeConeccion.setText("Interfaces de Conección");

        labelInterfaz.setFont(new java.awt.Font("Tahoma", 0, 14));
        labelInterfaz.setText("Interfaz:");

        cmbInterfaz.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Interfaz 1", "Interfaz 2", "Interfaz 3", "Interfaz 4", "Interfaz 5", "Interfaz 6", "Interfaz 7", "Interfaz 8", "Interfaz 9", "Interfaz 10", "Interfaz 11", "Interfaz 12", "Interfaz 13", "Interfaz 14", "Interfaz 15", "Interfaz 16", "Interfaz 17", "Interfaz 18", "Interfaz 19", "Interfaz 20", "Interfaz 21", "Interfaz 22", "Interfaz 23", "Interfaz 24" }));
        cmbInterfaz.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cmbInterfazItemStateChanged(evt);
            }
        });

        javax.swing.GroupLayout panelInterfacesLayout = new javax.swing.GroupLayout(panelInterfaces);
        panelInterfaces.setLayout(panelInterfacesLayout);
        panelInterfacesLayout.setHorizontalGroup(
            panelInterfacesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelInterfacesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelInterfacesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pestañasInterfaces, javax.swing.GroupLayout.PREFERRED_SIZE, 403, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelInterfacesDeConeccion)
                    .addGroup(panelInterfacesLayout.createSequentialGroup()
                        .addComponent(labelInterfaz)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cmbInterfaz, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panelInterfacesLayout.setVerticalGroup(
            panelInterfacesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelInterfacesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelInterfacesDeConeccion)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelInterfacesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelInterfaz)
                    .addComponent(cmbInterfaz, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(22, 22, 22)
                .addComponent(pestañasInterfaces, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
                .addContainerGap())
        );

        Pestañas.addTab("Interfaces", new javax.swing.ImageIcon(getClass().getResource("/tsb/UI/Imagenes/CONEXIONES_16X16.png")), panelInterfaces); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(Pestañas, javax.swing.GroupLayout.PREFERRED_SIZE, 425, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(Pestañas, javax.swing.GroupLayout.PREFERRED_SIZE, 472, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
    }// </editor-fold>//GEN-END:initComponents

    private void cmbInterfazItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cmbInterfazItemStateChanged
        int indice = this.cmbInterfaz.getSelectedIndex();
        this.pestañasInterfaces.setSelectedIndex(indice);
    }//GEN-LAST:event_cmbInterfazItemStateChanged
    
    
    private void insertarPanel(javax.swing.JPanel p, String panel)
    {
//        if(!this.pestaña1)
//         {
//             this.panelPestañaInterfaz1.add(p);
//             pestañasInterfaces.setTitleAt(0, panel);
//             this.pestaña1=true;
//             this.btnQuitarInterfazPestaña1.setVisible(true);
//         }
//         else
//         {
//             this.panelPestañainterfaz2.add(p);
//             pestañasInterfaces.setTitleAt(1, panel);
//             this.pestaña2=true;
//             this.btnQuitarInterfazPestaña2.setVisible(true);
//         }
    
    }
    
    
    
//    private void setAsigancioIPPanel1(AsignacionIP a)
//    {
//         if(this.panelPestaña1.getComponent(1) instanceof tsb.UI.Paneles.PanelEthernet)
//        {
//           PanelEthernet pe = (PanelEthernet)this.panelPestaña1.getComponent(1);
//           pe.setAsignacion(a);
//           return;
//        }
//
//        if(this.panelPestaña1.getComponent(1) instanceof PanelFastEthernetRJ45)
//        {
//            PanelFastEthernetRJ45 pe = (PanelFastEthernetRJ45)this.panelPestaña1.getComponent(1);
//             pe.setAsignacion(a);
//             return;
//        }
//        if(this.panelPestaña1.getComponent(1) instanceof PanelFastEthernetFibra)
//        {
//            PanelFastEthernetFibra pe = (PanelFastEthernetFibra)this.panelPestaña1.getComponent(1);
//             pe.setAsignacion(a);
//           return;
//        }
//        if(this.panelPestaña1.getComponent(1) instanceof PanelGigabitRJ45)
//        {
//            PanelGigabitRJ45 pe = (PanelGigabitRJ45)this.panelPestaña1.getComponent(1);
//             pe.setAsignacion(a);
//           return;
//        }
//        if(this.panelPestaña1.getComponent(1) instanceof PanelGigabitFibra)
//        {
//            PanelGigabitFibra pe = (PanelGigabitFibra)this.panelPestaña1.getComponent(1);
//            pe.setAsignacion(a);
//            return;
//        }
//        if(this.panelPestaña1.getComponent(1) instanceof PanelSerial)
//        {
//            PanelSerial pe = (PanelSerial)this.panelPestaña1.getComponent(1);
//             pe.setAsignacion(a);
//           return;
//        }
//        if(this.panelPestaña1.getComponent(1) instanceof PanelModemPC)
//        {
//            PanelModemPC pe = (PanelModemPC)this.panelPestaña1.getComponent(1);
//             pe.setAsginarIP(a);
//           return;
//        }
//         if(this.panelPestaña1.getComponent(1) instanceof PanelWireless)
//        {
//            PanelWireless pe = (PanelWireless)this.panelPestaña1.getComponent(1);
//             pe.setAsignacionIP(a);
//           return;
//        }
//        
//    }
    
    private void setAsignacionIPPanel(javax.swing.JPanel p, AsignacionIP ip)
    {
         if(p.getComponent(1) instanceof tsb.UI.Paneles.PC.PanelEthernet)
        {
//           PanelEthernet pe = (PanelEthernet)p.getComponent(1);
//           pe.setAsignacion(ip);
           return;
        }

        if(p.getComponent(1) instanceof PanelFastEthernetRJ45)
        {
            PanelFastEthernetRJ45 pe = (PanelFastEthernetRJ45)p.getComponent(1);
             pe.setAsignacion(ip);
             return;
        }
        if(p.getComponent(1) instanceof PanelFastEthernetFibra)
        {
            PanelFastEthernetFibra pe = (PanelFastEthernetFibra)p.getComponent(1);
             pe.setAsignacion(ip);
           return;
        }
        if(p.getComponent(1) instanceof PanelGigabitRJ45)
        {
            PanelGigabitRJ45 pe = (PanelGigabitRJ45)p.getComponent(1);
             pe.setAsignacion(ip);
           return;
        }
        if(p.getComponent(1) instanceof PanelGigabitFibra)
        {
            PanelGigabitFibra pe = (PanelGigabitFibra)p.getComponent(1);
            pe.setAsignacion(ip);
            return;
        }
        if(p.getComponent(1) instanceof PanelSerial)
        {
            PanelSerial pe = (PanelSerial)p.getComponent(1);
             pe.setAsignacion(ip);
           return;
        }
        if(p.getComponent(1) instanceof PanelModemPC)
        {
            PanelModemPC pe = (PanelModemPC)p.getComponent(1);
             //pe.setAsginarIP(ip);
           return;
        }
         if(p.getComponent(1) instanceof PanelWireless)
        {
            PanelWireless pe = (PanelWireless)p.getComponent(1);
             pe.setAsignacionIP(ip);
           return;
        }
        
    }
//    private void setAsigancioIPPanel2(AsignacionIP a)
//    {
//        if(this.panelPestaña2.getComponent(1) instanceof tsb.UI.Paneles.PanelEthernet)
//        {
//           PanelEthernet pe = (PanelEthernet)this.panelPestaña2.getComponent(1);
//           pe.setAsignacion(a);
//           return;
//        }
//
//        if(this.panelPestaña2.getComponent(1) instanceof PanelFastEthernetRJ45)
//        {
//            PanelFastEthernetRJ45 pe = (PanelFastEthernetRJ45)this.panelPestaña2.getComponent(1);
//             pe.setAsignacion(a);
//             return;
//        }
//        if(this.panelPestaña2.getComponent(1) instanceof PanelFastEthernetFibra)
//        {
//            PanelFastEthernetFibra pe = (PanelFastEthernetFibra)this.panelPestaña2.getComponent(1);
//             pe.setAsignacion(a);
//           return;
//        }
//        if(this.panelPestaña2.getComponent(1) instanceof PanelGigabitRJ45)
//        {
//            PanelGigabitRJ45 pe = (PanelGigabitRJ45)this.panelPestaña2.getComponent(1);
//             pe.setAsignacion(a);
//           return;
//        }
//        if(this.panelPestaña2.getComponent(1) instanceof PanelGigabitFibra)
//        {
//            PanelGigabitFibra pe = (PanelGigabitFibra)this.panelPestaña2.getComponent(1);
//            pe.setAsignacion(a);
//            return;
//        }
//        if(this.panelPestaña2.getComponent(1) instanceof PanelSerial)
//        {
//            PanelSerial pe = (PanelSerial)this.panelPestaña2.getComponent(1);
//             pe.setAsignacion(a);
//           return;
//        }
//        if(this.panelPestaña1.getComponent(1) instanceof PanelModemPC)
//        {
//            PanelModemPC pe = (PanelModemPC)this.panelPestaña1.getComponent(1);
//             pe.setAsginarIP(a);
//           return;
//        }
//        if(this.panelPestaña2.getComponent(1) instanceof PanelWireless)
//        {
//            PanelWireless pe = (PanelWireless)this.panelPestaña2.getComponent(1);
//             pe.setAsignacionIP(a);
//           return;
//        } 
//                    
//    
//    }
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTabbedPane Pestañas;
    private javax.swing.ButtonGroup btgrAsingacionIP;
    private javax.swing.JComboBox cmbInterfaz;
    private javax.swing.JComboBox cmbencendido;
    private javax.swing.JLabel labelEncendido;
    private javax.swing.JLabel labelInterfacesDeConeccion;
    private javax.swing.JLabel labelInterfaz;
    private javax.swing.JLabel labelNombreAMostrar;
    private javax.swing.JPanel panelConfiguraciones;
    private javax.swing.JPanel panelInterfaces;
    private javax.swing.JPanel panelPestañaInterfaz1;
    private javax.swing.JPanel panelPestañaInterfaz10;
    private javax.swing.JPanel panelPestañaInterfaz11;
    private javax.swing.JPanel panelPestañaInterfaz119;
    private javax.swing.JPanel panelPestañaInterfaz12;
    private javax.swing.JPanel panelPestañaInterfaz13;
    private javax.swing.JPanel panelPestañaInterfaz14;
    private javax.swing.JPanel panelPestañaInterfaz15;
    private javax.swing.JPanel panelPestañaInterfaz16;
    private javax.swing.JPanel panelPestañaInterfaz17;
    private javax.swing.JPanel panelPestañaInterfaz18;
    private javax.swing.JPanel panelPestañaInterfaz20;
    private javax.swing.JPanel panelPestañaInterfaz21;
    private javax.swing.JPanel panelPestañaInterfaz22;
    private javax.swing.JPanel panelPestañaInterfaz23;
    private javax.swing.JPanel panelPestañaInterfaz24;
    private javax.swing.JPanel panelPestañaInterfaz25;
    private javax.swing.JPanel panelPestañaInterfaz26;
    private javax.swing.JPanel panelPestañaInterfaz3;
    private javax.swing.JPanel panelPestañaInterfaz4;
    private javax.swing.JPanel panelPestañaInterfaz5;
    private javax.swing.JPanel panelPestañaInterfaz6;
    private javax.swing.JPanel panelPestañaInterfaz7;
    private javax.swing.JPanel panelPestañaInterfaz8;
    private javax.swing.JPanel panelPestañaInterfaz9;
    private javax.swing.JPanel panelPestañainterfaz2;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch1;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch10;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch11;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch12;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch13;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch14;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch15;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch16;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch17;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch18;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch19;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch2;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch20;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch21;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch22;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch23;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch24;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch3;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch4;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch5;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch6;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch7;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch8;
    private tsb.UI.Paneles.PanelRJ45Switch panelRJ45Switch9;
    private javax.swing.JTabbedPane pestañasInterfaces;
    private javax.swing.JTextField txtNombreAMostrar;
    // End of variables declaration//GEN-END:variables

    public void setNombreAMostrar(String nombre)
    {
        this.txtNombreAMostrar.setText(nombre);
    }
    
    public String getNombreAMostrar()
    {
        return this.txtNombreAMostrar.getText();
    }
    
    public void setEncendido(boolean encendido)
    {
        if(encendido)
        {
            this.cmbencendido.setSelectedIndex(0);
        }
        else
        {
            this.cmbencendido.setSelectedIndex(1);
        }
    }
    
    public boolean getEncendido()
    {
        if(this.cmbencendido.getSelectedIndex()==0)
            return true;
        else
            return false;
    }
    
//    public void setAsignacionIP(AsignacionIP asignacion)
//    {
//        if(asignacion== AsignacionIP.DCHP)
//        {
//            this.rbtDCHP.setSelected(true);
//        }
//        else
//        {
//            this.rbtStatic.setSelected(true);
//        }
//    }
//    
//    public AsignacionIP getAsignacionIP()
//    {
//        if(this.rbtDCHP.isSelected())
//            return AsignacionIP.DCHP;
//        else
//            return AsignacionIP.Static; 
//    }
//    
//    public void setGateway(IP gw )
//    {
//        if(gw!=null)
//        {
//            this.txtGateway.setText(gw.toString());
//        }
//    }
//    
//    public IP getGateway()
//    {
//        IP ip = new IP(this.txtGateway.getText());
//        return ip;
//    }
//    
//    public void setServidorDNS(IP dns)
//    {
//        if(dns!=null)
//        {
//            this.txtServidorDNS.setText(dns.toString());
//        }
//    }
//    
//    public IP getServdorDNS()
//    {
//        IP dns = new IP(this.txtServidorDNS.getText());
//        return dns;
//    }
    
    public ArrayList<InterfaceDeConeccion> getInterfaces()
    {
        return this.listaInterfaces;
    }

    public void setInterfaces(ArrayList<InterfaceDeConeccion> interfaces)
    {
       Iterator iter= interfaces.iterator();
       int contador=0;

       while(iter.hasNext())
       {
          switch(contador)
          {
              
              case 0:
                  RJ45FastEthernet rj= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch1.setAnchoBanda(rj.getAnchoDeBanda());
                  this.panelRJ45Switch1.setDuplex(rj.getDuplex());
                  contador++;
                  break;
              case 1:
                  RJ45FastEthernet rj2= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch2.setAnchoBanda(rj2.getAnchoDeBanda());
                  this.panelRJ45Switch2.setDuplex(rj2.getDuplex());
                  contador++;
                  break;
              case 2:
                  RJ45FastEthernet rj3= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch3.setAnchoBanda(rj3.getAnchoDeBanda());
                  this.panelRJ45Switch3.setDuplex(rj3.getDuplex());
                  contador++;
                  break;
              case 3:
                  RJ45FastEthernet rj4= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch4.setAnchoBanda(rj4.getAnchoDeBanda());
                  this.panelRJ45Switch4.setDuplex(rj4.getDuplex());
                  contador++;
                  break;
              case 4:
                  RJ45FastEthernet rj5= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch5.setAnchoBanda(rj5.getAnchoDeBanda());
                  this.panelRJ45Switch5.setDuplex(rj5.getDuplex());
                  contador++;
                  break;
              case 5:
                  RJ45FastEthernet rj6= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch6.setAnchoBanda(rj6.getAnchoDeBanda());
                  this.panelRJ45Switch6.setDuplex(rj6.getDuplex());
                  contador++;
                  break;
              case 6:
                  RJ45FastEthernet rj7= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch7.setAnchoBanda(rj7.getAnchoDeBanda());
                  this.panelRJ45Switch7.setDuplex(rj7.getDuplex());
                  contador++;
                  break;
              case 7:
                  RJ45FastEthernet rj8= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch8.setAnchoBanda(rj8.getAnchoDeBanda());
                  this.panelRJ45Switch8.setDuplex(rj8.getDuplex());
                  contador++;
                  break;
              case 8:
                  RJ45FastEthernet rj9= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch9.setAnchoBanda(rj9.getAnchoDeBanda());
                  this.panelRJ45Switch9.setDuplex(rj9.getDuplex());
                  contador++;
                  break;
              case 9:
                  RJ45FastEthernet rj10= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch10.setAnchoBanda(rj10.getAnchoDeBanda());
                  this.panelRJ45Switch10.setDuplex(rj10.getDuplex());
                  contador++;
                  break;
              case 10:
                  RJ45FastEthernet rj11= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch11.setAnchoBanda(rj11.getAnchoDeBanda());
                  this.panelRJ45Switch11.setDuplex(rj11.getDuplex());
                  contador++;
                  break;
              case 11:
                  RJ45FastEthernet rj12= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch12.setAnchoBanda(rj12.getAnchoDeBanda());
                  this.panelRJ45Switch12.setDuplex(rj12.getDuplex());
                  contador++;
                  break;
              case 12:
                  RJ45FastEthernet rj13= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch13.setAnchoBanda(rj13.getAnchoDeBanda());
                  this.panelRJ45Switch13.setDuplex(rj13.getDuplex());
                  contador++;
                  break;
              case 13:
                  RJ45FastEthernet rj14= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch14.setAnchoBanda(rj14.getAnchoDeBanda());
                  this.panelRJ45Switch14.setDuplex(rj14.getDuplex());
                  contador++;
                  break;
              case 14:
                  RJ45FastEthernet rj15= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch15.setAnchoBanda(rj15.getAnchoDeBanda());
                  this.panelRJ45Switch15.setDuplex(rj15.getDuplex());
                  contador++;
                  break;
              case 15:
                  RJ45FastEthernet rj16= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch16.setAnchoBanda(rj16.getAnchoDeBanda());
                  this.panelRJ45Switch16.setDuplex(rj16.getDuplex());
                  contador++;
                  break;
              case 16:
                  RJ45FastEthernet rj17= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch17.setAnchoBanda(rj17.getAnchoDeBanda());
                  this.panelRJ45Switch17.setDuplex(rj17.getDuplex());
                  contador++;
                  break;
              case 17:
                  RJ45FastEthernet rj18= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch18.setAnchoBanda(rj18.getAnchoDeBanda());
                  this.panelRJ45Switch18.setDuplex(rj18.getDuplex());
                  contador++;
                  break;
              case 18:
                  RJ45FastEthernet rj19= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch19.setAnchoBanda(rj19.getAnchoDeBanda());
                  this.panelRJ45Switch19.setDuplex(rj19.getDuplex());
                  contador++;
                  break;
              case 19:
                  RJ45FastEthernet rj20= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch20.setAnchoBanda(rj20.getAnchoDeBanda());
                  this.panelRJ45Switch20.setDuplex(rj20.getDuplex());
                  contador++;
                  break;
              case 20:
                  RJ45FastEthernet rj21= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch21.setAnchoBanda(rj21.getAnchoDeBanda());
                  this.panelRJ45Switch21.setDuplex(rj21.getDuplex());
                  contador++;
                  break;
              case 21:
                  RJ45FastEthernet rj22= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch22.setAnchoBanda(rj22.getAnchoDeBanda());
                  this.panelRJ45Switch22.setDuplex(rj22.getDuplex());
                  contador++;
                  break;
              case 22:
                  RJ45FastEthernet rj23= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch23.setAnchoBanda(rj23.getAnchoDeBanda());
                  this.panelRJ45Switch23.setDuplex(rj23.getDuplex());
                  contador++;
                  break;
              case 23:
                  RJ45FastEthernet rj24= (RJ45FastEthernet)iter.next();
                  this.panelRJ45Switch24.setAnchoBanda(rj24.getAnchoDeBanda());
                  this.panelRJ45Switch24.setDuplex(rj24.getDuplex());
                  contador++;
                  break;
                  
                  
          }


          
       }





    
  }
     

       
    
    
    public ArrayList<InterfaceDeConeccion> getInterfacesUpdate(ArrayList<InterfaceDeConeccion> interfacesViejas) throws MACException
    {
        ArrayList<InterfaceDeConeccion> listaDeInterfaces= new ArrayList<InterfaceDeConeccion>();
        for(int i=0;i<=23;i++)
        {
            IP ip = new IP();
            IP subNet= new IP();
            MAC mac= new MAC("8A-CE-34-61-25-F9");
            switch(i)
            {
                //panelInterfazSwitchRJ451.getEstado()
                    case 0:
                    int a=this.panelRJ45Switch1.getAnchoBanda();
                    boolean duplex=this.panelRJ45Switch1.getDuplex();
                    RJ45FastEthernet fe= new RJ45FastEthernet(true,a,ip,subNet,duplex,true, mac);
                    listaDeInterfaces.add(fe);
                    break;
                    case 1:
                    RJ45FastEthernet fe2= new RJ45FastEthernet(true,this.panelRJ45Switch2.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch2.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe2);
                    break;
                    case 2:
                    RJ45FastEthernet fe3= new RJ45FastEthernet(true,this.panelRJ45Switch3.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch3.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe3);
                    break;
                    case 3:
                    RJ45FastEthernet fe4= new RJ45FastEthernet(true,this.panelRJ45Switch4.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch4.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe4);
                    break;
                    case 4:
                    RJ45FastEthernet fe5= new RJ45FastEthernet(true,this.panelRJ45Switch5.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch5.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe5);
                    break;
                    case 5:
                    RJ45FastEthernet fe6= new RJ45FastEthernet(true,this.panelRJ45Switch6.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch6.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe6);
                    break;
                    case 6:
                    RJ45FastEthernet fe7= new RJ45FastEthernet(true,this.panelRJ45Switch7.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch7.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe7);
                    break;
                    case 7:
                    RJ45FastEthernet fe8= new RJ45FastEthernet(true,this.panelRJ45Switch8.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch8.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe8);
                    break;
                    case 8:
                    RJ45FastEthernet fe9= new RJ45FastEthernet(true,this.panelRJ45Switch9.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch9.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe9);
                    break;
                    case 9:
                    RJ45FastEthernet fe10= new RJ45FastEthernet(true,this.panelRJ45Switch10.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch10.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe10);
                    break;
                    case 10:
                    RJ45FastEthernet fe11= new RJ45FastEthernet(true,this.panelRJ45Switch11.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch11.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe11);
                    break;
                    case 11:
                    RJ45FastEthernet fe12= new RJ45FastEthernet(true,this.panelRJ45Switch12.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch12.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe12);
                    break;
                    case 12:
                    RJ45FastEthernet fe13= new RJ45FastEthernet(true,this.panelRJ45Switch13.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch13.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe13);
                    break;
                    case 13:
                    RJ45FastEthernet fe14= new RJ45FastEthernet(true,this.panelRJ45Switch14.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch14.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe14);
                    break;
                    case 14:
                    RJ45FastEthernet fe15= new RJ45FastEthernet(true,this.panelRJ45Switch15.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch15.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe15);
                    break;
                    case 15:
                    RJ45FastEthernet fe16= new RJ45FastEthernet(true,this.panelRJ45Switch16.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch16.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe16);
                    break;
                    case 16:
                    RJ45FastEthernet fe17= new RJ45FastEthernet(true,this.panelRJ45Switch17.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch17.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe17);
                    break;
                    case 17:
                    RJ45FastEthernet fe18= new RJ45FastEthernet(true,this.panelRJ45Switch18.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch18.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe18);
                    break;
                    case 18:
                    RJ45FastEthernet fe19= new RJ45FastEthernet(true,this.panelRJ45Switch19.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch19.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe19);
                    break;
                    case 19:
                    RJ45FastEthernet fe20= new RJ45FastEthernet(true,this.panelRJ45Switch20.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch20.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe20);
                    break;
                    case 20:
                    RJ45FastEthernet fe21= new RJ45FastEthernet(true,this.panelRJ45Switch21.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch21.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe21);
                    break;
                    case 21:
                    RJ45FastEthernet fe22= new RJ45FastEthernet(true,this.panelRJ45Switch22.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch22.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe22);
                    break;
                    case 22:
                    RJ45FastEthernet fe23= new RJ45FastEthernet(true,this.panelRJ45Switch23.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch23.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe23);
                    break;
                    case 23:
                    RJ45FastEthernet fe24= new RJ45FastEthernet(true,this.panelRJ45Switch24.getAnchoBanda(),ip,subNet,duplex=this.panelRJ45Switch24.getDuplex(),true, mac);
                    listaDeInterfaces.add(fe24);
                    break;

//
//
//
//
            }
         }
        
        return listaDeInterfaces;
        
    }

 
    


       class ComboBoxRenderer extends JLabel
                           implements ListCellRenderer {
        private Font uhOhFont;

        public ComboBoxRenderer() {
            setOpaque(true);
            setHorizontalAlignment(CENTER);
            setVerticalAlignment(CENTER);
        }

        /*
         * This method finds the image and text corresponding
         * to the selected value and returns the label, set up
         * to display the text and image.
         */
        public Component getListCellRendererComponent(
                                           JList list,
                                           Object value,
                                           int index,
                                           boolean isSelected,
                                           boolean cellHasFocus) {
            //Get the selected index. (The index param isn't
            //always valid, so just use the value.)
            int selectedIndex = ((Integer)value).intValue();

            if (isSelected) {
                setBackground(list.getSelectionBackground());
                setForeground(list.getSelectionForeground());
            } else {
                setBackground(list.getBackground());
                setForeground(list.getForeground());
            }

            //Set the icon and text.  If icon was null, say so.
            ImageIcon icon = images[selectedIndex];
            String pet = opciones[selectedIndex];
            setIcon(icon);
            if (icon != null) {
                setText(pet);
                setFont(list.getFont());
            } else {
                setUhOhText(pet + " (no image available)",
                            list.getFont());
            }

            return this;
        }

        //Set the font and text when no image was found.
        protected void setUhOhText(String uhOhText, Font normalFont) {
            if (uhOhFont == null) { //lazily create this font
                uhOhFont = normalFont.deriveFont(Font.ITALIC);
            }
            setFont(uhOhFont);
            setText(uhOhText);
        }
    }

}


